package com.compomics.multidentparser.model;

/**
 * This abstract class contains the common used fields for a search engine hit.
 * @author Thilo Muth
 *
 */
public abstract class GenericHit {
	
	/**
	 * The hit charge.
	 */
	private int charge;
	
	/**
	 * The peptide sequence.
	 */
	private String peptideSequence;
	
	/**
	 * The precursor m/z.
	 */
	private double precursorMz;
	
	/**
	 * Returns the hit charge.
	 * @return The hit charge.
	 */
	public int getCharge() {
		return charge;
	}
	
	/**
	 * Sets the hit charge.
	 * @param charge The hit charge.
	 */
	public void setCharge(int charge) {
		this.charge = charge;
	}
	
	/**
	 * Returns the peptide sequence.
	 * @return The peptide Sequence
	 */
	public String getPeptideSequence() {
		return peptideSequence;
	}
	
	/**
	 * Sets the peptide sequence
	 * @param peptideSequence The peptide sequence.
	 */
	public void setPeptideSequence(String peptideSequence) {
		this.peptideSequence = peptideSequence;
	}
	
	/**
	 * Returns the precursor m/z.
	 * @return The precursor m/z.
	 */
	public double getPrecursorMz() {
		return precursorMz;
	}
	
	/**
	 * Returns the precursor m/z.
	 * @param precursorMz The precursor m/z.
	 */
	public void setPrecursorMz(double precursorMz) {
		this.precursorMz = precursorMz;
	}
}
